Skip to content

fix(eval): migrate pre-v2 workspace on eval label#13

Merged
Thormatt merged 1 commit into
mainfrom
fix/eval-label-migration
Jun 12, 2026
Merged

fix(eval): migrate pre-v2 workspace on eval label#13
Thormatt merged 1 commit into
mainfrom
fix/eval-label-migration

Conversation

@Thormatt

Copy link
Copy Markdown
Owner

Found running the eval feature live: orc eval label read the workspace name from the trace and called gold.add directly, skipping ws_module.resolve() — the only path that runs the v2 schema migration. On a workspace whose db predates schema v2 (no gold_claim table), promotion crashed with no such table: gold_claim.

The unit tests missed it because create() always builds the current schema.sql (which has the table). The new regression test faithfully simulates a pre-v2 db by dropping the table and resetting the version stamp.

Fix: label_command resolves the workspace first, triggering the migration.

🤖 Generated with Claude Code

label_command read the workspace name from the trace and called
gold.add directly, skipping ws_module.resolve() — the only path that
runs the v2 schema migration. On a workspace whose db predates v2
(no gold_claim table) promotion crashed with "no such table".
Resolve the workspace first so it migrates. Found running the feature
live against a real pre-v2 workspace; the unit tests missed it
because create() always builds the current schema.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Thormatt Thormatt merged commit c9723f5 into main Jun 12, 2026
3 checks passed
@Thormatt Thormatt deleted the fix/eval-label-migration branch June 12, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant